<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script type="text/javascript"
	src="/ecwebpub/component/webpub/core/seajs/dist/sea-debug.js"></script>
<script type="text/javascript"
	src="/ecwebpub/component/webpub/core/seajs/dist/config.js"></script>
<title>grid示例</title>
</head>
<body>
	<div id="grid"></div>
	<script type="text/javascript">
		seajs
				.use(
						'/ecwebpub/component/webpub/common/grid/src/js/Grid',
						function(Grid) {
							var grid = new Grid(
									{
										attrs : {
											url : 'data.json',
											columns : [ {
												label : "商品名称",
												key : "name"
											}, {
												label : "商品编码",
												key : "code"
											}, {
												label : "商品价格",
												key : "price"
											} ]
										},
										renderTo : "grid"
									});
						});
	</script>
</body>
</html>